//
//  BBInviteTableViewCell.m
//  BlockBrowser
//
//  Created by Mac on 2018/4/9.
//  Copyright © 2018年 stoneobs@icloud.com. All rights reserved.
//

#import "BBInviteTableViewCell.h"

@interface  BBInviteTableViewCell()

@end
@implementation BBInviteTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self configSubView];
    }
    return self;
}
+ (CGFloat)cellHeight{
    return 44;
}
#pragma mark --subView
- (void)configSubView{
    self.backgroundColor = [UIColor clearColor];
    STLabel * lable1 = [self defultLableWithTop:0 title:@"邀请层级"];
    lable1.left = 0;
    [self addSubview:lable1];
    self.lable1 = lable1;
    
    STLabel * lable2 = [self defultLableWithTop:0 title:@"一次性奖励"];
    lable2.left = lable1.right;
    [self addSubview:lable2];
     self.lable2 = lable2;
    
    STLabel * lable3 = [self defultLableWithTop:0 title:@"后续收益"];
    lable3.left = lable2.right;
    [self addSubview:lable3];
     self.lable3 = lable3;
    STLabel * lable4 = [self defultLableWithTop:0 title:@"邀请人数"];
    lable4.left = lable3.right;
    [self addSubview:lable4];
     self.lable4 = lable4;
}
- (STLabel*)defultLableWithTop:(CGFloat)top title:(NSString*)title{
    
    STLabel * titleLable = [[STLabel alloc] initWithFrame:CGRectMake(0, top, UIScreenWidth / 4, 44)
                                                     text:title
                                                textColor:[UIColor whiteColor]
                                                     font:14
                                              isSizetoFit:NO
                                            textAlignment:NSTextAlignmentCenter];
    return titleLable;
}
@end
